/*
 * Copyright (c) 2020 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef APP_BUTTON_H_
#define APP_BUTTON_H_

enum {
    IOT_WEATHER_NULL = 0,
    IOT_WEATHER_SUNNY,
    IOT_WEATHER_CLOUDY,
    IOT_WEATHER_RAIN,
    IOT_WEATHER_CLOUDY_DAY,
    IOT_WEATHER_RAIN_AND_SNOW,
    IOT_WEATHER_HAIL,
    IOT_WEATHER_THUNDER,
    IOT_WEATHER_SNOW
};

struct weather_info
{
    int weatherIndex;
    int temperature;
};

void IotWeather_TaskCreate(void);
struct weather_info IotWeather_GetWeather( void);

#endif